<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>项目管理系统 by www.mycodes.net</title>
<link rel="stylesheet" rev="stylesheet" href="<%=request.getContextPath()%>/backstage/css/editpwd.css" type="text/css" media="all" />


<script language="JavaScript" type="text/javascript">
function tishi()
{
  var a=confirm('数据库中保存有该人员基本信息，您可以修改或保留该信息。');
  if(a!=true)return false;
  window.open("冲突页.htm","","depended=0,alwaysRaised=1,width=800,height=400,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
}

function check()
{
document.getElementById("aa").style.display="";
}
function confirm(){
	var password=document.getElementById("password").value;
	var confirmPaw=document.getElementById("confirmpassword").value;
	var oldpassword=document.getElementById("oldpassword").value;
	var pawSpan=document.getElementById("pawSpan");
	
	if(password!=confirmPaw){
		pawSpan.innerHTML="两次输入密码不一致";
		return false;
	}
	if(password==""||confirmPaw==""||oldpassword==""){
		pawSpan.innerHTML="输入不能为空！";
		return false;
	}
	return true;
}

</script>
<style type="text/css">
<!--
.atten {font-size:12px;font-weight:normal;color:#F00;}
-->
</style>
</head>

<body class="ContentBody">
  
<div class="MainDiv">
<form action="<%=path%>/user/updatepwd" method="post" onsubmit="return confirm()">
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
  <tr>
      <th class="tablestyle_title" >用户密码修改页面</th>
  </tr>
  <tr>
	<td width="100%">
		<fieldset style="height:100%;">
		<legend>修改密码</legend>
			  <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
				<tr>
			    <td align="right" width="25%">旧密码:</td>
			    <td width="43%"><input id="oldpassword" name="oldpassword" class="text" style="width:250px" type="password" size="40"  /><span style="color:red">  </span></td>
		      </tr>
			  <tr>
			    <td align="right" width="25%">新密码:</td>
			    <td width="43%"><input id="password" name="password" class="text" style="width:250px" type="password" size="40" /></td>
		      </tr>
		      <tr>
			    <td align="right" width="25%">确认新密码:</td>
			    <td width="43%"><input id="confirmpassword" name="confirmpassword" class="text" style="width:250px" type="password" size="40" /><span id="pawSpan" style="color:red"><c:if test="${not empty errorText}">${errorText}</c:if></span></td>
		      </tr>
			  </table>
		
	 	<br />
		</fieldset>			
	</td>
  </tr>
  <tr>
	<td colspan="2" align="center" height="50px">
		<input type="submit" name="Submit" value="保存" class="button" />　
		<input type="button" name="Submit2" value="返回" class="button" onclick="window.history.go(-1);"/>
	</td>
  </tr>

  </table>
    </form>
</div>
</body>
</html>
